<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 300px;
            height: 100px;
            background-color: rgb(73, 46, 46);
        }
    </style>
</head>
<body>
    <div class="box"></div>
    <script>
        // 1. touchstart
        document.querySelector('.box').addEventListener('touchstart',function(){
            console.log('开始摸');
        })
        // 2. touchmove
        document.querySelector('.box').addEventListener('touchmove',function(){
            console.log('一直摸');
        })
        // 3. touchend
        document.querySelector('.box').addEventListener('touchend',function(){
            console.log('不摸了');
        })
    </script>
</body>
</html>